package com.wh.springboot.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author elsy
 * @since 2023-04-15
 */
@Getter
@Setter
@TableName("ban_ji")
@ApiModel(value = "BanJi对象", description = "")
public class BanJi implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    @ApiModelProperty("学院id")
    private Integer xueYuanId;

    @ApiModelProperty("教师id")
    private Integer teacherId;

    //拓展字段，没有标识，数据没有这个字段，我们自己加的
    @TableField(exist=false)
    private String teacher;

    @TableField(exist=false)
    private String academy;

}
